<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    const allroutes = [
      {
        path: "/layout",
        name: "layout",
        redirect: "/home",
        component: () => import("@/components/layout/AppLayout.vue"),
        children: [
          {
            path: "/home",
            name: "home",
            component: () => import("@/components/homeView.vue"),
            children: [],
            meta: {
              name: "首页",
            },
          },
          {
            path: "/news",
            name: "news",
            redirect: "/newslist",
            meta: {
              name: "新闻模块",
            },
            children: [
              {
                path: "/newslist",
                name: "newslist",
                meta: {
                  name: "新闻列表",
                },
                component: () => import("@/components/aView.vue"),
              },
              {
                path: "/newsmanagement",
                name: "newsmanagement",
                meta: {
                  name: "新闻管理",
                },
                component: () => import("@/components/bView.vue"),
              },
            ],
          },
          {
            path: "/roles",
            name: "roles",
            redirect: "/roleslist",
            meta: {
              name: "权限模块",
            },
            children: [
              {
                path: "/roleslist",
                name: "roleslist",
                meta: {
                  name: "权限列表",
                },
                children: [
                  {
                    path: "/roleuser",
                    name: "roleuser",
                    meta: {
                      name: "用户权限管理",
                    },
                    component: () => import("@/components/permissionView.vue"),
                  },
                  {
                    path: "/rolelist",
                    name: "rolelist",
                    meta: {
                      name: "角色权限管理",
                    },
                    component: () => import("@/components/rolesView.vue"),
                  },
                ],
              },
            ],
          },
          {
            path: "/user",
            name: "user",
            redirect: "/userslist",
            meta: {
              name: "用户模块",
            },
            children: [
              {
                path: "/userslist",
                name: "userslist",
                meta: {
                  name: "用户列表",
                },
                component: () => import("@/components/cView.vue"),
              },
              {
                path: "/usersmanagement",
                name: "usersmanagement",
                meta: {
                  name: "用户管理",
                },
                component: () => import("@/components/dView.vue"),
              },
            ],
          },
        ],
      },
    ];
    let s = allroutes[0].children;
    console.log("====================================");
    console.log(s);
    console.log("====================================");
  </script>
</html>
